package com.pai4j.common.exception;

import com.pai4j.common.enums.PAIErrorCommonEnum;
/***
 * 认证失败异常
 */
public class SafeEventException extends RuntimeException {

    private int code = PAIErrorCommonEnum.UN_SAFE_EVENT.getCode();

    public SafeEventException() {
        super();
    }

    public SafeEventException(String s) {
        super(s);
    }

    public SafeEventException(int code, String s) {
        super(s);
        this.code = code;
    }

    public SafeEventException(String message, Throwable cause) {
        super(message, cause);
    }

    public SafeEventException(Throwable cause) {
        super(cause);
    }
    
    public int getCode() {
        return code;
    }
}
